package com.yuxi.Entity;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.yuxi.Util.StringManageUtil;

public class FirstCheckExcel implements Serializable {
	private String informationConternt; //安全信息内容
	private String informationClassificationId;//信息分级	
	private String mesureAndStandard;//处置标准及措施
	private String taskDispatchName;
	private String taskDispatchTime;	
	private String zeRenTime;
	private String taskCompletion="";
	private String zeRenPerSonNames;
	private String ZeRenRemark;
	public String getInformationConternt() {
		return informationConternt;
	}
	public void setInformationConternt(String informationConternt) {
		this.informationConternt = informationConternt;
	}
	public String getInformationClassificationId() {
		return informationClassificationId;
	}
	public void setInformationClassificationId(String informationClassificationId) {
		this.informationClassificationId = informationClassificationId;
	}
	public String getMesureAndStandard() {
		return mesureAndStandard;
	}
	public void setMesureAndStandard(String mesureAndStandard) {
		this.mesureAndStandard = mesureAndStandard;
	}
	public String getTaskDispatchName() {
		return taskDispatchName;
	}
	public void setTaskDispatchName(String taskDispatchName) {
		this.taskDispatchName = taskDispatchName;
	}
	public String getTaskDispatchTime() {
		return taskDispatchTime;
	}
	public void setTaskDispatchTime(String taskDispatchTime) {
		this.taskDispatchTime = taskDispatchTime;
	}
	public String getZeRenTime() {
		return zeRenTime;
	}
	public void setZeRenTime(String zeRenTime) {
		this.zeRenTime = zeRenTime;
	}
	public String getTaskCompletion() {
		return taskCompletion;
	}
	public void setTaskCompletion(String taskCompletion) {
		this.taskCompletion = taskCompletion;
	}
	public String getZeRenPerSonNames() {
		return zeRenPerSonNames;
	}
	public void setZeRenPerSonNames(String zeRenPerSonNames) {
		this.zeRenPerSonNames = zeRenPerSonNames;
	}
	public String getZeRenRemark() {
		return ZeRenRemark;
	}
	public void setZeRenRemark(String zeRenRemark) {
		ZeRenRemark = zeRenRemark;
	}
	
	
	public FirstCheckExcel(String informationConternt, String informationClassificationId, String mesure,String standard,
			String taskDispatchName, String taskDispatchTime, String zeRenTime, String taskCompletion,
			String zeRenPerSonNames, String zeRenRemark) {
		super();
		this.informationConternt = informationConternt;
		this.informationClassificationId = informationClassificationId;
//		this.mesureAndStandard = "措施:"+mesure+System.getProperty("line.separator")
//				+ "\r\n标准:"+standard;
		
		this.mesureAndStandard=mesure;
		this.taskDispatchName = taskDispatchName;
		try{
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
			String date = sdf.format(new Date(Long.parseLong(taskDispatchTime)));	
			this.taskDispatchTime =date;
		}catch(Exception e){
			this.taskDispatchTime ="";
		}
		try{
			SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
			String date1 = sdf1.format(new Date(Long.parseLong(taskDispatchTime)));	
			this.zeRenTime = date1;
		}catch(Exception e){
			this.zeRenTime="";
		}
		List<UserTaskCompletion> list=new Gson().fromJson(taskCompletion, new TypeToken<List<UserTaskCompletion>>(){}.getType());
		if(list!=null){
			for(int i=0;i<list.size();i++){
				UserTaskCompletion u=list.get(i);
				this.taskCompletion+=u.getName()+":"+u.getText();
			}				
		}	
		this.zeRenPerSonNames = StringManageUtil.removeDot(zeRenPerSonNames);
		ZeRenRemark = zeRenRemark;
	}
	@Override
	public String toString() {
		return "FirstCheckExcel [informationConternt=" + informationConternt + ", informationClassificationId="
				+ informationClassificationId + ", mesureAndStandard=" + mesureAndStandard + ", taskDispatchName="
				+ taskDispatchName + ", taskDispatchTime=" + taskDispatchTime + ", zeRenTime=" + zeRenTime
				+ ", taskCompletion=" + taskCompletion + ", zeRenPerSonNames=" + zeRenPerSonNames + ", ZeRenRemark="
				+ ZeRenRemark + "]";
	}	
	
	
	
}	

